

#ifndef _SHELL_RESUPBUF_MESSAGE_H_
#define _SHELL_RESUPBUF_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include <vector>
//#include "PlayerBufferBean.h"
using namespace std;

class ResUpBufMessage : public Message
{
	public:
	ResUpBufMessage();
	~ResUpBufMessage();
	void reset();
	ResUpBufMessage* clone();
	static const int _ID;
	//更新类型1.添加,2.删除,3.更新
	int8 type;
	//角色拥有buff
	vector<PlayerBufferBean*> playerBufferBean;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
